package com.balakitbbs.service;

import org.springframework.beans.factory.annotation.Autowired; 
import org.springframework.stereotype.Service;                 
import com.balakitbbs.page.SearchPageUtil;     
import java.util.*;     
import com.balakitbbs.entity.Bala_userconfig;
import com.balakitbbs.dao.Bala_userconfigDaoIF;
   /**
    * bala_userconfig Service类
    */ 
@Service
public class Bala_userconfigService{
@Autowired
private Bala_userconfigDaoIF dao;
	public void addBala_userconfig(Bala_userconfig bala_userconfig){
		dao.addBala_userconfig(bala_userconfig);
	}

	public void delBala_userconfig(String id){
		dao.delBala_userconfig(id);
	}

	public void delBala_userconfigTrue(String id){
		dao.delBala_userconfigTrue(id);
	}

	public void updateBala_userconfig(Bala_userconfig bala_userconfig){
		dao.updateBala_userconfig(bala_userconfig);
	}

	public Bala_userconfig selectBala_userconfigById(String id){
		return dao.selectBala_userconfigByID(id);
	}

	public int selectBala_userconfigCount(){
		return dao.selectBala_userconfigCount();
	}

	public int selectBala_userconfigCountAll(){
		return dao.selectBala_userconfigCountAll();
	}

	public List<Bala_userconfig> selectBala_userconfigsByPage(SearchPageUtil spu){
		return dao.selectBala_userconfigsByPage(spu);
	}

	public int selectBala_userconfigsByPOJOCount(Bala_userconfig bala_userconfig){
		return dao.selectBala_userconfigsByPOJOCount(bala_userconfig);
	}

	public List<Bala_userconfig> selectBala_userconfigsByPOJO(Bala_userconfig bala_userconfig){
		return dao.selectBala_userconfigsByPOJO(bala_userconfig);
	}

	public List<Bala_userconfig> selectBala_userconfigsByPojoPage(SearchPageUtil spu,Bala_userconfig bala_userconfig){
		Map map = new HashMap();
		map.put("spu",spu);
		map.put("pojo",bala_userconfig);
		return dao.selectBala_userconfigsByPojoPage(map);
	}

}

